<template>
  <div>我是一个描述 -- {{ count() }}</div>
  <button @click="setCount">++++++</button>
</template>

<script>
export default {
  inject: ['count'],
  methods: {
    setCount() {
      // console.log(this.count)
      this.count(1)
    }
  }
}
</script>

<style lang="scss" scoped></style>
